package cn.com.dhcc.ddi.node.vo.wapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import cn.com.dhcc.app.core.handler.dbhandler.WappedResultSet;
import cn.com.dhcc.ddi.node.vo.DataCategory;


public class DataCategoryRowWapper implements RowMapper<DataCategory> {

	@Override
	public DataCategory mapRow(ResultSet rss, int rowNum) throws SQLException {
		WappedResultSet rs = new WappedResultSet(rss);
		DataCategory vo = new DataCategory();
		vo.setId(rs.getString("id"));
		vo.setName(rs.getString("name"));
		vo.setDomName(rs.getString("domName"));
		vo.setDomain_id(rs.getString("domain_id"));
		vo.setStatus(rs.getString("status"));
		vo.setMtime(rs.getTimestamp("mtime"));
		vo.setRemark(rs.getString("remark"));
		
		return vo;
	}

}
